import { IModuleConf, Boot } from '@wangeditor/editor'
import withAttachment from './plugin'
import renderElemConf from './render-elem'
import elemToHtmlConf from './elem-to-html'
import parseHtmlConf from './parse-elem-html'
// import { uploadAttachmentMenuConf, downloadAttachmentMenuConf } from './menu/indexd'

const module: Partial<IModuleConf> = {
    editorPlugin: withAttachment,
    renderElems: [renderElemConf],
    elemsToHtml: [elemToHtmlConf],
    parseElemsHtml: [parseHtmlConf],
    // menus: [uploadAttachmentMenuConf, downloadAttachmentMenuConf],
}

Boot.registerModule(module)